#include "NodeVarForVector.h"
#include "DumpLog.h"
namespace Net
{

NodeVarForVector::NodeVarForVector(std::size_t dim):BaseNodeVar(NodeVarType_E::Vector_E)
{
    if (dim)
    {
        value.resize(dim);
        diffValue.resize(dim);
    }
    else
    {
        LogError("Vector初始化时,维度不能为0");
    }
}

NodeVarForVector::~NodeVarForVector()
{

}

uint32_t NodeVarForVector::getVarSize() const
{
    return value.size();
}

std::vector<std::size_t> NodeVarForVector::getDim() const
{
    return {static_cast<std::size_t>(value.size())};
}
    
}